<?php

require_once './application/controllers/ControllerBase.php';
require_once './application/core/Common/CommonCore.php';
require_once './application/core/Common/dialogCore.php';

///
/// Classe gerant les connections / deconnections des utilisateurs
///
class CommonController extends ControllerBase
{

    function indexAction()
    {
        $this->verifConnexion();
        $this->_redirector->gotoSimple('', '');
    }

    function menuAction()
    {
        $this->verifConnexion();
        $common = new CommonCore($this);
        $this->view->content = $common->GetMenu();
    }

    function dialogAction()
    {
        $this->verifConnexion();
        $diag = new dialogCore($this);
        $diag->dialogTitle();
    }

    function tabcontrolAction()
    {
        $this->verifConnexion();
        $common = new CommonCore($this);
    }

    function voletAction()
    {
        $this->verifConnexion();
    }

}
